Skip to content

[CHORE] Upgrade MDX to v3#361

Open
John McCall (lowlydba) wants to merge 5 commits intomainfrom
344-upgrade-to-latest-mdx-spec-version
Open

[CHORE] Upgrade MDX to v3#361
John McCall (lowlydba) wants to merge 5 commits intomainfrom
344-upgrade-to-latest-mdx-spec-version

Conversation

@lowlydba
Copy link
Copy Markdown
Contributor

Pull Request

This pull request updates all blog post markdown files to replace the old HTML comment <!-- truncate --> (and variants like <!--truncate-->) with the JSX comment syntax {/* truncate */}. This change ensures consistency and compatibility with MDX, which supports JSX-style comments instead of HTML comments.

The most important changes are:

Migration to JSX comment syntax in blog posts:

This is a straightforward, non-functional change that improves code consistency and prevents potential rendering issues in the documentation site.

Replace HTML-style comments (<!-- ... -->) with MDX/JSX comment syntax ({/* ... */}) across many blog and docs MDX files to ensure comments are handled correctly by the MDX/React parser. Also update docusaurus.config.js mdx1Compat settings to disable legacy comments and admonitions (comments: false, admonitions: false) to align with the MDX comment changes and avoid compatibility issues.

Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Copilot AI review requested due to automatic review settings April 22, 2026 18:51
@lowlydba John McCall (lowlydba) requested a review from a team as a code owner April 22, 2026 18:51
@lowlydba John McCall (lowlydba) linked an issue Apr 22, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

Super-linter summary

Language Validation result
JAVASCRIPT_ES Pass ✅
MARKDOWN Fail ❌
NATURAL_LANGUAGE Pass ✅
SQLFLUFF Pass ✅

Super-linter detected linting errors

For more information, see the GitHub Actions workflow run

Powered by Super-linter

MARKDOWN
/github/workspace/docs/schema/index.md:10:27 error MD037/no-space-in-emphasis Spaces inside emphasis markers [Context: "* #"]
/github/workspace/docs/schema/index.md:10:49 error MD037/no-space-in-emphasis Spaces inside emphasis markers [Context: "s *"]

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2026

🗺️ OMF Docs previews are live!

🆕 Auto-gen schema site (beta) https://staging.overturemaps.org/docs/pr/361/index.html
🗂️ Auto-gen schema ref dev@04f8969
🌍 Repo schema site https://staging.overturemaps.org/docs/pr/361-no-autogen/index.html
🕐 Updated Apr 22, 2026 19:06 UTC
📝 Commit ac74fd7

Auto-gen schema site is now available. This is an early preview of a future workflow where we will automatically generate and publish reference docs for the Overture Maps Format schema with every change to the schema repo.
The auto-gen schema site may contain incomplete or inaccurate information as we are still refining the generation process, so please compare against the repo schema site and refer to the linked commit for the most up-to-date source of truth.

Note

♻️ This preview updates automatically with each push to this PR.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Docusaurus site content/config to be compatible with MDX v3 by removing MDX1 compatibility settings and migrating legacy HTML comment usage in MD/MDX content.

Changes:

  • Removed mdx1Compat settings from the Docusaurus config.
  • Replaced <!-- truncate --> (and variants) with JSX comment markers in blog posts.
  • Replaced other HTML comment blocks inside MDX docs with JSX comments.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docusaurus.config.js Removes MDX1 compatibility configuration in preparation for MDX v3.
docs/schema/index.md Updates a heading line during MDX v3 migration (note: current change alters anchor behavior).
docs/examples/build-a-map.mdx Converts inline section-label HTML comments inside tabs to JSX comments.
docs/examples/athena-aws.mdx Converts a large commented-out optional section from HTML comment syntax to JSX comment syntax.
blog/2026-04-15-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2026-03-18-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2026-03-12-explorer-got-pretty.mdx Converts blog truncate marker to JSX comment.
blog/2026-02-18-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2026-02-11-stac.mdx Converts blog truncate marker to JSX comment.
blog/2026-01-21-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-12-17-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-11-19-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-10-22-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-09-24-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-08-20-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-07-23-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-06-25-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-06-25-getting-started-gers.mdx Converts blog truncate marker to JSX comment.
blog/2025-05-21-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-04-23-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-03-19-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-02-19-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2025-01-22-release-notes.mdx Converts blog truncate marker to JSX comment.
blog/2024/2024-12-18.0.mdx Converts blog truncate marker to JSX comment.
blog/2024/2024-11-13.0.mdx Converts blog truncate marker to JSX comment.
blog/2024/2024-10-23.0.mdx Converts blog truncate marker to JSX comment.
blog/2024/2024-09-18.0.mdx Converts blog truncate marker to JSX comment.
blog/2024/2024-08-20.0.mdx Converts blog truncate marker to JSX comment.
blog/2024/2024-07-22.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-beta/2024-06-13-beta.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-beta/2024-05-16-beta.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-beta/2024-04-16-beta.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-alpha/2024-03-12-alpha.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-alpha/2024-02-15-alpha.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-alpha/2024-01-17-alpha.0.mdx Converts blog truncate marker to JSX comment.
blog/2024-12-18-transportation-to-ga.mdx Converts blog truncate marker to JSX comment.
blog/2024-10-21-preview-october-release.mdx Converts blog truncate marker to JSX comment.
blog/2024-08-15-preview-august-release.mdx Converts blog truncate marker to JSX comment.
blog/2024-07-24-explore-site.mdx Converts blog truncate marker to JSX comment.
blog/2024-05-16-land-cover.mdx Converts blog truncate marker to JSX comment.
blog/2024-04-22-beta-release.mdx Converts blog truncate marker to JSX comment.
blog/2024-04-21-welcome.mdx Converts blog truncate marker to JSX comment.
blog/2023-alpha/2023-12-14-alpha.0.mdx Converts blog truncate marker to JSX comment.
blog/2023-alpha/2023-11-14-alpha.0.mdx Converts blog truncate marker to JSX comment.
blog/2023-alpha/2023-10-19-alpha.0.mdx Converts blog truncate marker to JSX comment.
blog/2023-alpha/2023-07-26-alpha.0.mdx Converts blog truncate marker to JSX comment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/schema/index.md Outdated
Signed-off-by: John McCall <john@overturemaps.org>
Update references to the schema docs and clean up the schema index heading. The blog post now links to the canonical /schema/ page instead of the old /schema/reference/#top-level-properties anchor, and docs/schema/index.md removes an inline anchor/comment from the H1 to simplify the heading text.

Signed-off-by: John McCall <john@overturemaps.org>
@github-actions
Copy link
Copy Markdown

Super-linter summary

Language Validation result
JAVASCRIPT_ES Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
SQLFLUFF Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to latest MDX spec version

3 participants